package zhangxinhua.lanqiaoyun;

/**
 * TODO
 *
 * @author zxhtom
 * 2022/7/5
 */
public class Practice {
    public static int telnet(String head, String body) {
        String newResult = head + body;
        int psecond = System.identityHashCode(newResult);
        newResult=newResult.intern();
        int second = System.identityHashCode(newResult);
        System.out.println(psecond==second);
        return second;
    }
    public static int experience(String person) {

        return System.identityHashCode(person);
    }
}
